import Phaser from 'phaser';
import MainScene from './scenes/MainScene';
import StartScene from './scenes/StartScene'; // 导入 StartScene

const config = {
  type: Phaser.AUTO,
  width: 800,
  height: 600,
  parent: 'phaser-game-container', // ID of the div where the canvas will be injected
  physics: {
    default: 'arcade',
    arcade: {
      gravity: { y: 0 },
      debug: false
    }
  },
  scene: [StartScene, MainScene] // 将 StartScene 设为第一个场景
};

export default config;